package com.three.dao;

import java.util.HashMap;
import java.util.List;

import com.three.entity.Clazz;

public interface ClazzDao {

	public List<Clazz> findClassesByUid(Integer id);
	
	public Clazz findClazzByCid(Integer cid);
	
	public List<Clazz> findClassesByUidWithUsers(Integer id);

	public int updateInviteCode(HashMap<String, Object> map);
	
	public int stopInviteCode(Integer cid);
	
	public int updateRollcallCode(String rollcallCode,Integer cid);
	
	public int addClazz(String clazzName, String inviteCode, String tecName);
	
	public int addAssoUC(Integer uid,Integer cid);
	
	public int deleteAssoUC(Integer cid);
	
	public int deleteAssoUCByUcid(Integer ucid);
	
	public List<Integer> findUcidByUidWithCid(Integer uid,Integer cid);
	
	public List<Integer> findUcidsByCid(Integer cid);
	
	public int findLastInsertId();
	
	public int updateName(Integer cid,String name);
	
	public int deleteClazz(Integer cid);
	
	public List<Integer> findCidByInviteCode(String inviteCode);
	
	public String findRollcallCodeByCid(Integer cid);
	
}
